

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import HmButton from './components/HmButton.vue'
import { createPinia } from 'pinia'
import persistedstate from 'pinia-plugin-persistedstate'
const application = createApp(App)// 应用对象
const pinia = createPinia()
pinia.use(persistedstate)
// 在挂载之前去注册全局组件
application.component('HmButton', HmButton)
application.use(router)
application.use(pinia)
application.mount('#app')// 挂载到元素上
// ability创建一个窗口应用程序